<template>
    <div>
         <mc-questionnaire
           :mc-config="{saveUrl:'magical_lowcode/openapi/crud/hello_child/save',getUrl:'magical_lowcode/openapi/crud/hello_child/get-by-pk'}">
             <template v-slot:body="{row}">
                <el-col :span="24">
                    请您填写，中国的面积<el-input v-model="row.input"></el-input>平方公里
                </el-col>
               <el-col :span="24">
                 父亲ID是<el-input v-model="row.parentId"></el-input>
               </el-col>
             </template>
             <template v-slot:bottom="{row}">
               <el-col :span="24">
                  <el-button type="primary" @click="row.action=1">提交</el-button>
               </el-col>
             </template>
         </mc-questionnaire>
    </div>
</template>

<script>
import McQuestionnaire from './components/McQuestionnaire'

export default {
    data(){
        return {
            parentQuery:{pid:1}
		    }
    },
    components:{
        McQuestionnaire
    },
    methods : {
        /*提交前回调*/
        beforeSubmitForm:function(formData){
            console.log(formData)
            return true;
        },
        focus:function(){
        },
        changeParentQuery(){
            this.parentQuery.pid = new Date().getTime()
            console.log(this.parentQuery)
        }
    }
}
</script>

<style>

</style>
